package cn.com.xuhx;

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;

public class App {

    public static void main(String[] args) {
        JaxWsProxyFactoryBean jaxWsProxyFactoryBean = new JaxWsProxyFactoryBean();
        jaxWsProxyFactoryBean.setAddress("http://localhost:8899/hello_server?wsdl=HelloService.wsdl");
        jaxWsProxyFactoryBean.setServiceClass(HelloService.class);
        HelloService helloService = (HelloService)jaxWsProxyFactoryBean.create();
        String result = helloService.sayHello("张三");
        System.out.println(result);
    }
}
